package com.cxb.servicemap.controller;

import com.cxb.internalcommon.dto.ResponseResult;
import com.cxb.internalcommon.request.PointRequestDTO;
import com.cxb.servicemap.service.PointService;
import com.sun.media.sound.SoftPointResampler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/point")
public class PointController {

    @Autowired
    private PointService pointService;

    /**
     * 上传轨迹点
     * @param pointRequestDTO
     * @return
     */
    //1544176895000
    @PostMapping("/upload")
    public ResponseResult upload(@RequestBody PointRequestDTO pointRequestDTO){
        return pointService.upload(pointRequestDTO);
    }
}
